<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeFile="EditUser.aspx.cs" Inherits="Impact.Web.Admin.EditUser"  %>
<%@ Register Src="~/Admin/Controls/SubmitCancel.ascx" TagPrefix="impact" TagName="Submit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <table class="AdminTable" border="0">
    
        <tr>
            <th colspan="3">Edit User</th>
        </tr>
        
        <tr>
            <td>User Name: <asp:RequiredFieldValidator ID="_userNameRequired" ControlToValidate="_userName" ErrorMessage="*" EnableClientScript="false" runat="server" /></td>
            <td><asp:TextBox ID="_userName" runat="server" /></td>
        </tr>
        
        <tr>
            <td>Email: <asp:RequiredFieldValidator ID="_emailRequired" ControlToValidate="_email" ErrorMessage="*" EnableClientScript="false" runat="server" /></td>
            <td><asp:TextBox ID="_email" runat="server" /></td>
        </tr>
        
        <asp:Panel ID="_passwordPanel" runat="server">
        <tr>
            <td>Password: <asp:RequiredFieldValidator ID="_passwordRequired" ControlToValidate="_password" ErrorMessage="*" EnableClientScript="false" runat="server" /></td>
            <td><asp:TextBox ID="_password" TextMode="Password" runat="server" /></td>
        </tr>
        
        <tr>
            <td>Confirm: 
                <asp:CompareValidator id="_passwordValidation" ControlToValidate="_passwordConfirm"
                     ControlToCompare="_password" runat="server" ErrorMessage="*" />
                <asp:RequiredFieldValidator ID="_passwordConfirmRequired" ControlToValidate="_passwordConfirm" ErrorMessage="*" EnableClientScript="false" runat="server" />
            </td>
            <td><asp:TextBox ID="_passwordConfirm" TextMode="Password" runat="server" /></td>
        </tr>
        </asp:Panel>
        
        <tr>
            <td></td>
            <td style="text-align: right; padding-right: 0px;">
                <impact:Submit id="submit" OnSubmit="SubmitCommand" OnCancel="CancelCommand" runat="server" />                
            </td>
            <td style="text-align: left; padding-left: 0px;">
                <impact:ImageLinkButton ID="password" CssClass="AdminTableButton" Text="Change Password" 
                    ImageUrl="images/lock.png" runat="server" />
            </td>
        </tr>
    
    
    </table>


</asp:Content>
